<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<script>
	var ctx = "${ctx}";
</script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>广告位管理</title>
<meta name="keywords" content="体验,友好">
<meta name="description" content="这是一个完全响应式">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="Wed, 26 Feb 209908:21:57 GMT">

<link href="${ctx}/static/css/bootstrap.min.css?v=${static_version}"
	rel="stylesheet" />
<link href="${ctx}/static/css/animate.min.css?v=${static_version}"
	rel="stylesheet" />
<link href="${ctx}/static/css/style.min.css?v=${static_version}"
	rel="stylesheet" />
<!-- Data Tables -->
<link
	href="${ctx}/static/css/plugins/dataTables/dataTables.bootstrap.css?v=${static_version}"
	rel="stylesheet" />

<link href="${ctx}/static/css/common.css" rel="stylesheet" />

<link rel="stylesheet"
	href="${ctx}/static/plugins/lightbox/css/lightbox.min.css">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">

		<div class="ibox float-e-margins">

			<!-- 广告位中心 -->
			<div class="ibox-title">
				<h5>
					广告位中心<small></small>
				</h5>
			</div>

			<div class="ibox-content">

				<table
					class="table table-striped table-bordered table-hover dataTables-example">
					<thead>
						<tr>
							<th class="text-center" data-sort-ignore="true"
								data-title="title">位置</th>
							<th class="text-center" data-sort-ignore="true"
								data-title="title">缩略图</th>
							<th class="text-center" data-sort-ignore="true"
								data-title="cate_name">缩略图尺寸及格式</th>
							<!-- <th class="text-center" data-sort-ignore="true"
								data-title="title">内页缩略图</th> -->
							<th class="text-center" data-sort-ignore="true"
								data-title="cate_name">内页图尺寸及格式</th>
							<th class="text-center" data-sort-ignore="true"
								data-title="cate_name">价格（元/天）</th>
							<th class="text-center">操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${advertpositions}" var="advertposition">
							<tr class="footable-even" style="display: table-row;">
								<td class="footable-visible">${advertposition.position_name}</td>
								<td class="text-center footable-visible footable-first-column"><a
									class="example-image-link" href="${advertposition.pre_picture}"
									data-lightbox="example-set"
									data-title="${advertposition.position_name}"><img
										class="example-image" src="${advertposition.pre_picture}"
										alt="" style="height: 100px;"></a></td>
								<td class="footable-visible">${advertposition.spec}</td>
								<%-- <td class="text-center footable-visible footable-first-column"><a
									class="example-image-link"
									href="${advertposition.pre_prcture_inn}"
									data-lightbox="example-set"
									data-title="${advertposition.position_name}"><img
										class="example-image" src="${advertposition.pre_picture}"
										alt="" style="height: 100px;"></a></td> --%>
								<td class="footable-visible">${advertposition.spec_inn}</td>
								<td class="footable-visible">${advertposition.unit_price}</td>
								<td class="text-center footable-visible footable-last-column"><a
									class="btn btn-primary"
									href="${ctx}/advert_positionadvert-addOrUpdate?positionid=${advertposition.id}">发布广告</a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>

				<div class="row">
					<div class="col-md-6" class="pull-left" id="page_left_text"></div>
					<div class="col-md-6" id="page_text"></div>
				</div>
			</div>
		</div>

	</div>

	<script src="${ctx}/static/js/jquery.min.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/bootstrap.min.js?v=${static_version}"></script>

	<script
		src="${ctx}/static/js/plugins/dataTables/jquery.dataTables.js?v=${static_version}"></script>
	<script
		src="${ctx}/static/js/plugins/dataTables/dataTables.bootstrap.js?v=${static_version}"></script>
	<script src="${ctx}/static/js/pingpp.js"></script>
	<script
		src="${ctx}/static/plugins/lightbox/js/lightbox-plus-jquery.min.js"></script>
	<script>
		$(document).ready(function() {
			$(".dataTables-example").dataTable();
		});
	</script>
</body>
</html>